package cn.com.huzo.model.entities.trade;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 生产指示书明细-产品尺码（套装明细）记录实体类
 * <p>
 * @author 吴旭
 */
public class ProductionInstructionLinesSuitSizeEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -3149338187615284863L;
    private String LinesId;                   // 套装尺码明细标识
    private Long HeaderId;                    // 所属生产指示书ID
    private String ParentLinesId;             // 所属明细标识
    private Long ProductId;                   // 产品标识
    private String StyleNo;                   // 款号
    private Long SizeId;                      // 成品码标识
    private String SizeName;

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getParentLinesId() {
        return ParentLinesId;
    }

    public void setParentLinesId(String ParentLinesId) {
        this.ParentLinesId = ParentLinesId;
    }

    public Long getProductId() {
        return ProductId;
    }

    public void setProductId(Long ProductId) {
        this.ProductId = ProductId;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public Long getSizeId() {
        return SizeId;
    }

    public void setSizeId(Long SizeId) {
        this.SizeId = SizeId;
    }

    public String getSizeName() {
        return SizeName;
    }

    public void setSizeName(String SizeName) {
        this.SizeName = SizeName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ProductionInstructionLinesSuitSizeEntity)) {
            return false;
        }

        final ProductionInstructionLinesSuitSizeEntity that = (ProductionInstructionLinesSuitSizeEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
